package com.sinosoft.entity;

import java.util.Date;
import java.util.List;

import org.apache.commons.lang3.StringUtils;

import com.sinosoft.util.DateUtil;

public class DefUser {
    private Long userId;

    private Long comId;

    private String userCode;

    private String userName;

    private String password;

    private String email;

    private String rcState;

    private String createDate;

    private String modifyDate;

    private Long createUserId;

    private Long modifyUserId;
    
    private String createUserName; //关联查询创建人姓名
    
    private String modifyUserName; //关联查询修改人姓名
    
    private Integer start; //分页查询时的查询起点
    
    private Integer rows; //分页查询时的每页展示条数
    
    private List<DefRole> roleList; //角色集合
    
    private String comCode; //关联查询公司编码
    
    private String comName; //关联查询公司名称

	public String getCreateUserName() {
		return createUserName;
	}

	public void setCreateUserName(String createUserName) {
		this.createUserName = createUserName;
	}

	public String getModifyUserName() {
		return modifyUserName;
	}

	public void setModifyUserName(String modifyUserName) {
		this.modifyUserName = modifyUserName;
	}

	public String getComCode() {
		return comCode;
	}

	public void setComCode(String comCode) {
		this.comCode = comCode;
	}

	public String getComName() {
		return comName;
	}

	public void setComName(String comName) {
		this.comName = comName;
	}

	public List<DefRole> getRoleList() {
		return roleList;
	}

	public void setRoleList(List<DefRole> roleList) {
		this.roleList = roleList;
	}

	public Integer getStart() {
		return start;
	}

	public void setStart(Integer start) {
		this.start = start;
	}

	public Integer getRows() {
		return rows;
	}

	public void setRows(Integer rows) {
		this.rows = rows;
	}

	public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getComId() {
        return comId;
    }

    public void setComId(Long comId) {
        this.comId = comId;
    }

    public String getUserCode() {
        return userCode;
    }

    public void setUserCode(String userCode) {
        this.userCode = StringUtils.isBlank(userCode) ? null : userCode.trim();
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = StringUtils.isBlank(userName) ? null : userName.trim();
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = StringUtils.isBlank(password) ? null : password.trim();
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = StringUtils.isBlank(email) ? null : email.trim();
    }

    public String getRcState() {
        return rcState;
    }

    public void setRcState(String rcState) {
        this.rcState = StringUtils.isBlank(rcState) ? null : rcState.trim();
    }

    public String getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = DateUtil.format(createDate);
    }

    public String getModifyDate() {
        return modifyDate;
    }

    public void setModifyDate(Date modifyDate) {
        this.modifyDate = DateUtil.format(modifyDate);
    }

    public Long getCreateUserId() {
        return createUserId;
    }

    public void setCreateUserId(Long createUserId) {
        this.createUserId = createUserId;
    }

    public Long getModifyUserId() {
        return modifyUserId;
    }

    public void setModifyUserId(Long modifyUserId) {
        this.modifyUserId = modifyUserId;
    }
}